package com.demo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.demo.Multilevel.ListViewActivity;
import com.demo.Picasso.PicassoDemo;
import com.demo.annotation.AAFrameActivity_;
import com.demo.recycler.RecyclerViewDemo;
import com.demo.retrofit.RetrofitDemoActivity;
import com.demo.zxing.ZxingDemo;
import com.yihujiu.demo.R;

public class MainActivity extends Activity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btnAnnotation:
                startActivity(new Intent(this, AAFrameActivity_.class));
                break;
            case R.id.btnRetrofit:
                startActivity(new Intent(this, RetrofitDemoActivity.class));
                break;
            case R.id.btnPicasso:
                startActivity(new Intent(this, PicassoDemo.class));
                break;
            case R.id.btnRecycleVew:
                startActivity(new Intent(this, RecyclerViewDemo.class));
                break;
            case R.id.zxing:
                startActivity(new Intent(this, ZxingDemo.class));
                break;
            default:
                break;
        }
    }

    public void Multilevel(View view) {
        startActivity(new Intent(this, ListViewActivity.class));
    }
}
